package com.sunrate.investingquote.constant;

import org.springframework.scheduling.support.CronTrigger;

import java.util.regex.Pattern;

/**
 * @author yyh
 * @description:
 * @date 2023/06/19/ 10:00
 */
public interface Constants {
    String WSS_URI = "wss://streaming.forexpros.com/echo/989/1cvebrak/websocket";
    CronTrigger CRON_TRIGGER = new CronTrigger("* * * * * ?");
    String HEART_BEAT_MSG = "[\"{ \\\"_event\\\": \\\"heartbeat\\\", \\\"data\\\": \\\"h\\\"}\"]";
    Pattern REG_PATTERN = Pattern.compile("\\{([^}])*\\}");
    String MSG_MARK = "message";
}
